Surface "latest" first as recommended version in local --help#266
Merged
Conversation
Issue #265: the local help text enumerating version specs omitted "latest" and didn't recommend a default. Update install, use, and server start (--version + after_help) so the spec enumeration lists "latest" (recommended) first. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #265.
For local commands, the
--helptext enumerating version specs now listslatestfirst and marks it as recommended.Changes
All in
crates/clickhousectl/src/local/cli.rs:local install—<VERSION>arg help now reads"latest" (recommended), "stable", "lts", partial like "25.12", or exact like "25.12.9.61".local use— both the<VERSION>arg help and theafter_helpspec enumeration now lead with"latest" (recommended).local server start— the--version/-vflag help and theafter_help("Accepts same specs as install/use…") now lead with"latest" (recommended).Testing
cargo build,cargo clippy, andcargo test --binsall clean.--helpoutput forlocal use.🤖 Generated with Claude Code
Note
Low Risk
Documentation-only changes to clap help strings; no runtime or version-resolution behavior is modified.
Overview
Updates
clickhousectl localCLI help so version specs consistently list"latest" (recommended)first wherever users pick a ClickHouse version.local installandlocal useargument help, pluslocal useandlocal server startafter_helptext, now enumeratelatestbeforestable,lts, partial, and exact versions. Theserver start --version/-vflag help matches the same ordering and wording.Reviewed by Cursor Bugbot for commit 11e0c93. Bugbot is set up for automated code reviews on this repo. Configure here.